package com.mt.roll.wms.vo;

import com.mt.roll.core.vo.CommonVo;
import com.mt.roll.core.vo.PageVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * @Author weihongyang
 * @Date 2020/12/30 14:04
 * @Version 1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Builder
@ApiModel(value = "物料视图对象", description = "用于查询物料信息")
public class MaterialVo extends CommonVo implements PageVo.ConvertVo {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @ApiModelProperty(value = "主键", required = true, example = "1")
    @NotNull(message = "ID不能为空")
    private Long id;

    /**
     * 类型
     */
    @ApiModelProperty(value = "类型", required = true, example = "category")
    private String category;

    /**
     * 物料编码
     */
    @ApiModelProperty(value = "物料编码", required = true, example = "code")
    private String code;

    /**
     * 物料名称
     */
    @ApiModelProperty(value = "物料名称", required = true, example = "name")
    private String name;

    /**
     * 英文名称
     */
    @ApiModelProperty(value = "英文名称", required = true, example = "enName")
    private String enName;

    /**
     * 缩写
     */
    @ApiModelProperty(value = "缩写", required = true, example = "abbr")
    private String abbr;


    /**
     * 描述
     */
    @ApiModelProperty(value = "描述", required = true, example = "abbr")
    private String description;

}
